import http from "@/utils/request";

/* 我的接口 */
export default {
  
}


// // 上传头像
export const upImg = (data) => {
	if(typeof data == 'string') data = { path: data }
  let { name, path, formData, header } = data;
  return http.upload("/Upload/fileUpload", {
    fileType: "image",
    filePath: path,
    name: name || "file",
    header,
    formData:{
			...formData,
			type: 0
		},
    loading: false,
  });
}